﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.Dto.Output
{
    /// <summary>
    /// 服务消息异常输出
    /// </summary>
    public class ServiceMessageErrorOutput
    {
        /// <summary>
        /// 获取是否成功
        /// </summary>
        [JsonProperty(Order = 1)]
        public Boolean Success { get; set; }

        /// <summary>
        /// 获取或设置错误
        /// </summary>
        [JsonProperty(Order = 2)]
        public ServiceErrorMessageOutput Error { get; set; }
    }

    /// <summary>
    /// 服务错误消息输出
    /// </summary>
    public class ServiceErrorMessageOutput
    {
        /// <summary>
        /// 获取错误代码
        /// </summary>
        [JsonProperty(Order = 1)]
        public int Code { get; set; }

        /// <summary>
        /// 获取错误消息
        /// </summary>
        [JsonProperty(Order = 2)]
        public string Message { get; set; }
    }
}
